<?PHP printdisplayheader('Media/Images','Website Photos or Associated Photos with this Content or Product');?>

<?PHP
global $conf;
$media= new media;
$media->limit=10;
$media->content_parent=$content_id;
$media->content_product=$product_id;
$media->content_option=$option_id;
if(!empty($image_mode))
{
		$media->mode=$image_mode;
		$specific_link='index.php?q=m/media/v_media.php&mode='.$image_mode.'&content_product='.$product_id.'&content_option='.$option_id.'&content_parent='.$content_id;
}

$md=$media->get_images();
$md=$media->process_content_data();
$media->get_box_running();


$headers[]='Path';
$headers[]='File Name';
$headers[]='Thumb';

$show[]='code';
$show[]='content_title';
$show[]='thickbox';



	p_table($headers,$md,$links,"class='itable'",$show,NULL,FALSE);

?>
<?PHP printdisplayfooter('Add Photos','?q=m/media/d_images.php&cmd=add','View Images','?q=m/media/v_media.php','View Specific Images',$specific_link);?>